package com.common.boot.em;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.generator.config.rules.DateType;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum DataSourceConfigEnum {
  szg_test(
      DbType.MYSQL,
      IdType.AUTO,
      DateType.TIME_PACK,
      "zdkx",
      "jdbc:mysql://10.197.184.36:15067/szg_qz_enterprise?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8",
      "com.mysql.cj.jdbc.Driver",
      "gz_zhongda",
      "m3P333(48185_9%c",
      "ads_czc"),

  czc_prod(
          DbType.MYSQL,
          IdType.AUTO,
          DateType.TIME_PACK,
      "zdkx",
                  "jdbc:mysql://10.197.208.102:15138/szg_czc?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8",
                  "com.mysql.cj.jdbc.Driver",
                  "gzsszzfyyzx01",
                  "I*{<juZ[G1egx=6+",
                  "ads_czc"),

  sxml(
          DbType.MYSQL,
          IdType.AUTO,
          DateType.TIME_PACK,
      "zdkx",
                  "jdbc:mysql://192.168.50.129:3306/sxml?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&useSSL=false",
                  "com.mysql.cj.jdbc.Driver",
                  "root",
                  "zdkx@dbuser2020",
                  "sml"),

  zhpz(
          DbType.MYSQL,
          IdType.ASSIGN_UUID,
          DateType.ONLY_DATE,
      "zdkx",
                  "jdbc:mysql://172.21.54.142:3306/zhpz?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&useSSL=false",
                  "com.mysql.cj.jdbc.Driver",
                  "zdkx",
                  "Zdkx!#$Test2306",
                  "qft_");

  private final DbType dbType;
  private final IdType idType;
  private final DateType dateType;
  private final String author;
  private final String url;
  private final String driverName;
  private final String username;
  private final String password;
  private final String tablePrefix;
}
